/*+***********************************************************************************
 Filename: mymcu01_test1\User\main.c
 Description: a demo work with 9k_mcu01_mycore_v01, which is
   a simple MCU with rom, ram and peripheral, without interruption.

 Modification:
   2025.08.17 Creation   H.Zheng
              porting from previous design.

Copyright (C) 2025  Zheng Hui (hzheng@gzhu.edu.cn)

License: MulanPSL-2.0

***********************************************************************************-*/

#include "hal_basic.h"

int main(void) {
    uartSendStr("hello st\n");

    uartSendStr("enter main.\n");

    while(1) {
        setLedValue(1);
        delayMs(500);
        setLedValue(0);
        delayMs(500);
        //
        if (getUartRxFlag()){
            uartSend(uartReceive());
        }
    }
}
